//
//  WBHomeViewController.swift
//  传智微博
//
//  Created by WZH on 2018/5/23.
//  Copyright © 2018年 WZH. All rights reserved.
//

import UIKit

class WBHomeViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        print(#function)
    }

    
    /// 显示好友
    @objc private func showFirends () {
        print(#function)
        let vc = WBDemoViewController()
        vc.hidesBottomBarWhenPushed = true
        navigationController?.pushViewController(vc, animated: true)
        
    }
    
}

// MARK: - 设置界面
extension WBHomeViewController {
    
    /// 重写父类方法
    override func setupUI() {
        super.setupUI()
        // 设置导航栏无法高亮
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "好友", target: self, action: #selector(showFirends))
    }
}
